import React from 'react';

// import "./assets/ColorUI-master/Colorui-UniApp/colorui/main.css";
// import "./assets/ColorUI-master/Colorui-UniApp/colorui/icon.css";
import './App.css';

import {BrowserRouter, Switch, Route,Redirect} from 'react-router-dom'
import {Provider as ReduxProvider} from 'react-redux';

import './fonts/ant_design/iconfont.css'

import BlankLayout from './layouts/blank'

import reduxStores from './redux/store'
import Logon from "./pages/auth/login";


function App() {
    return (
        <BrowserRouter>
            <ReduxProvider store={reduxStores}>
                <Switch>
                    <Route exact path="/"  render={() => <Redirect to={`/index`} push />} />
                    <Route path={`/auth/login`} component={Logon}/>
                    <Route path="/" component={BlankLayout}/>} />
                </Switch>
            </ReduxProvider>
        </BrowserRouter>
    );
}

export default App;
